package com.ruoyi.common.enums.erp;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author YanWenliang
 * @date 2024/12/24 10:09
 * @desciption: 客户行业
 */
@Getter
@AllArgsConstructor
public enum CrmCustomerIndustryEnum {
    MEDICAL("0", "医疗"),
    EDUCATION("1", "教育"),
    MANUFACTURING("2", "制造业"),
    GOVERNMENT("3", "政府"),
    CHANNEL("4", "渠道"),
    VENDOR("5", "厂商"),
    PROCESSING_PRODUCTION("6", "加工生产"),
    REAL_ESTATE("7", "房地产"),
    FINANCE("8", "金融"),
    CATERING("9", "餐饮");

    private final String code;
    private final String info;

    public static String getInfo(String code){
        for (CrmCustomerIndustryEnum type : CrmCustomerIndustryEnum.values()) {
            if (type.code.equals(code)) {
                return type.info;
            }
        }
        return "无";
    }
}
